package loki
Import Path
github.com/K-Phoen/grabana/alert/queries/loki (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
loki.go
Package-Level Type Names (total 2)
Loki represents a loki query.
Builder sdk.AlertQuery
func New(ref string, query string, options ...Option) *Loki
Option represents an option that can be used to configure a loki query.
func Legend(legend string) Option
func TimeRange(from time.Duration, to time.Duration) Option
func New(ref string, query string, options ...Option) *Loki
func github.com/K-Phoen/grabana/alert.WithLokiQuery(ref string, query string, options ...Option) alert.Option
Package-Level Functions (total 3)
Legend sets the legend format.
New creates a new loki query.
TimeRange sets the legend format.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |